package com.zjuee.base.dto.common.tporder;

import com.zjuee.base.base.Converter;
import com.zjuee.base.bean.Pages;
import com.zjuee.base.model.common.tporder.WkTransOrderApplyEntity;
import lombok.*;
import org.springframework.beans.BeanUtils;

/**
 * NoticePolicy DTO
 *
 * @author wu liang
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class TransOrderApplyDto extends WkTransOrderApplyEntity implements Converter<WkTransOrderApplyEntity, TransOrderApplyDto> {
    private Pages page;


    /**
     * 危险废物名称
     */
    private String wtomFwmc;
    @Override
    public void convertToDo(WkTransOrderApplyEntity wkTransOrderApplyEntity) {
        BeanUtils.copyProperties(this, wkTransOrderApplyEntity);
    }

    @Override
    public TransOrderApplyDto convert(WkTransOrderApplyEntity wkTransOrderApplyEntity) {
        BeanUtils.copyProperties(wkTransOrderApplyEntity, this);
        return this;
    }
}
